import { requestType } from '~/config/enum.config'

const SERVICE = 'management-service'
const CONTROLLER = 'userController'

export default {
  /**
   * 新增参数代码字典
   */
  addCodeConfigInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addCodeConfigInfo',
    type: requestType.Post
  },
  /**
   * 编辑代码参数字典 
   */
  updateCodeConfigInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateCodeConfigInfo',
    type: requestType.Post
  },
  /**
   * 新增地区码
   */
  addRegionalConfig: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addRegionalConfig',
    type: requestType.Post
  },
  /**
   * 删除代码参数配置
   */
  deleteCode: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'deleteCodeConfigInfo',
    type: requestType.Get
  },
  /**
   * 根据条件查询地区配置信息
   */
  getAllAreaConfig: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllAreaConfig',
    type: requestType.Get
  },
  /**
   * 查询所有代码参数字典
   */
  getAllCode: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllCodeConfigInfo',
    type: requestType.Get
  },
  /**
   * 根据条件查询所有用户
   */
  getAllUsers: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllUsers',
    type: requestType.Get
  },
  /**
   * 查询所有用户
   */
  getAllUsersList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllUsersList',
    type: requestType.Get
  },
  /**
   * 地区码配置详情
   */
  getRegionalConfig: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getRegionalConfig',
    type: requestType.Get
  },
  /**
   * 编辑地区码
   */
  updateRegionalConfig: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateRegionalConfig',
    type: requestType.Get
  },
  /**
   * 获取执行页手动标识下拉
   */
  getAllHandWorkCode: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllHandWorkCode',
    type: requestType.Get
  },
}